package com.tulingxueyuan.order.config;

import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;

/**
 * @description: TODO
 * @Author li
 * @Date 2025/4/22 14:56
 * 注意：此处配置@Configuration注解就会全局生效，如果想制定对应的微服务生效，就不能配置
 * 局部配置：如果只想针对某一个服务进行配置，就不要加@Configuration
 */
public class FeignConfig {
    @Bean
    public Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    public Request.Options options() {
        return new Request.Options(5000, 10000);
    }

    /*@Bean
    public FeignAuthRequestInterceptor feignAuthRequestInterceptor() {
        return new FeignAuthRequestInterceptor();
    }*/
}
